# v476 Architecture Index Update

- Fleet Map architecture now includes controlled blue/non-live marker refresh execution, rollback, and dispute audit records.
- Source: `Project Documentation/Build History/FLEET_MAP_CONTROLLED_BLUE_NON_LIVE_MARKER_REFRESH_EXECUTION_AND_ROLLBACK_V476.md`.
- Architecture source: `Project Documentation/Architecture/FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.md`.
- Boundary: execution is limited to approved blue/non-live markers only. Green remains live driver-app GPS only. Real GPS/ELD providers, Google server APIs, billing/access changes, and Transportation Accounting remain inactive.

# v475 Architecture Index Update

- Fleet Map architecture now includes complete non-live marker refresh safety-package staging: dry-run conflict hardening, supervisor evidence review, rollback packet preparation, export/copy readiness, approved refresh staging, and execution warnings.
- This remains a review/staging layer only. Coordinate mutation, real GPS/ELD provider connection, Google server API activation, billing/access changes, and Transportation Accounting activation remain locked.

## v473 Fleet Map Supervisor Approval Decision Audit Trail and Refresh Execution Lock Modeling

- Source: `Project Documentation/Build History/FLEET_MAP_SUPERVISOR_APPROVAL_DECISION_AUDIT_TRAIL_REFRESH_EXECUTION_LOCK_MODELING_V473.md`
- Architecture source: `Project Documentation/Architecture/FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.md`
- Purpose: extends active Fleet Map planning with supervisor marker-refresh decision audit records, decision outcome readouts, refresh execution lock modeling, decision/lock filters, audit trail visibility, and execution guardrails while keeping marker coordinate movement, provider calls, billing enforcement, broker distribution limits, owned portal rules, and internal load-board access disabled.
- Status: active Fleet Map operational visibility track. Billing enforcement remains parked after v461.

## v472 Fleet Map Marker Refresh Approval Queue and Supervisor Review Readiness

- Source: `Project Documentation/Build History/FLEET_MAP_MARKER_REFRESH_APPROVAL_QUEUE_SUPERVISOR_REVIEW_READINESS_V472.md`
- Architecture source: `Project Documentation/Architecture/FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.md`
- Purpose: extends active Fleet Map planning with marker refresh approval queue status, supervisor review readiness, driver recheck flags, live-GPS protected review states, approval checklist copy, and queue summary counts while keeping marker coordinate movement, provider calls, billing enforcement, broker distribution limits, owned portal rules, and internal load-board access disabled.
- Status: active Fleet Map operational visibility track. Billing enforcement remains parked after v461.

## Transportation Accounting Original Plan

- Source: `Project Documentation/Architecture/TRANSPORTATION_ACCOUNTING_ORIGINAL_PLAN.md`
- Purpose: preserves the planned future Transportation Accounting architecture for dispatch companies, fleets, small carriers, and owner-operators, including native accounting, optional QuickBooks sync, trucking-specific chart of accounts, load-based accounting, settlements, truck profitability, reserves, tax planning, financial reports, and Growth Plan reality data.
- Status: future planned architecture only. No accounting workflows, ledgers, reports, or sidebar accounting activation were added in v472.

## v471 Fleet Map Dispatcher-Confirmed Marker Refresh Preview and Non-Live Marker Labeling

- Source: `Project Documentation/Build History/FLEET_MAP_DISPATCHER_CONFIRMED_MARKER_REFRESH_PREVIEW_NON_LIVE_LABELING_V471.md`
- Purpose: extends active Fleet Map planning with dispatcher-confirmed non-live marker refresh preview labels, D badge map labeling, source audit references, preview policy copy, and live-GPS protection while keeping marker coordinate movement and provider calls disabled.
- Status: active Fleet Map operational visibility track. Billing enforcement remains parked after v461.

## v469 Fleet Map Manual Position Update Persistence Contract and Audit Trail Planning

- Source: `Project Documentation/Architecture/FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.md`
- Build history: `Project Documentation/Build History/FLEET_MAP_MANUAL_POSITION_UPDATE_PERSISTENCE_AUDIT_TRAIL_V469.md`
- Purpose: extends active Fleet Map planning with manual dispatcher-confirmed position update audit contract, DomainEvent-backed evidence, selected-truck audit form, recent audit trail, required payload/audit field rules, and marker-effect guardrails while keeping marker movement, Google Routes API, and live GPS/ELD providers unconnected.
- Status: active Fleet Map operational visibility track. Billing enforcement remains parked after v461.

## v468 Fleet Map Driver Check-In Workflow and Manual Position Update Readiness

- Source: `Project Documentation/Architecture/FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.md`
- Build history: `Project Documentation/Build History/FLEET_MAP_DRIVER_CHECK_IN_MANUAL_POSITION_UPDATE_READINESS_V468.md`
- Purpose: extends the active Fleet Map planning source with driver check-in workflow, suggested check-in copy, manual dispatcher-confirmed position update readiness, readiness filters, and guardrails while keeping Google Routes API and live GPS/ELD providers unconnected.
- Status: active Fleet Map operational visibility track. Billing enforcement remains parked after v461.

# PLATFORM_ARCHITECTURE_INDEX

## v467 Fleet Map CORI Live Tracking Assistant Recommendations

- Source: `Project Documentation/Architecture/FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.md`
- Purpose: extends the active Fleet Map planning source with CORI live tracking recommendation priority, category, review order, suggested driver check-in copy, top recommendation cards, and selected-truck recommendation detail while keeping Google Routes API and live GPS/ELD providers unconnected.
- Status: active Fleet Map operational visibility track. Billing enforcement remains parked after v461.

## v466 Fleet Map Route Deviation and Dispatcher Action Queue Readiness

- Source: `Project Documentation/Architecture/FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.md`
- Purpose: extends the active Fleet Map planning source with route-deviation status, estimated off-route miles, route-deviation thresholds, route-watch filters, and dispatcher action queue readiness while keeping Google Routes API and live GPS/ELD providers unconnected.
- Status: active Fleet Map operational visibility track. Billing enforcement remains parked after v461.

## v465 Fleet Map ETA Risk and Stopped-Too-Long Signal Foundation

- Source: `Project Documentation/Architecture/FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.md`
- Purpose: extends the active Fleet Map planning source with ETA risk states, delivery-buffer readouts, stopped-too-long movement signals, ETA/stopped-watch filters, and dispatcher next-step copy while keeping Google Routes API and live GPS/ELD providers unconnected.
- Status: active Fleet Map operational visibility track. Billing enforcement remains parked after v461.

## v464 Fleet Map Route Overlay and Pickup/Delivery Proximity Foundation
- `Project Documentation/Architecture/FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.md`
- `Project Documentation/Architecture/FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.html`
- Purpose: extends the active Fleet Map planning source with selected-truck route overlays, pickup/current/delivery route points, pickup/delivery proximity states, near-pickup/near-delivery filters, and Google Maps-ready route rendering while keeping Google Routes API and live GPS/ELD providers unconnected.
- Product UI impact: strengthens `/fleet-map` Workspace Operations surface with route lines and pickup/delivery proximity readouts.
- Prisma schema impact: none.

## v463 Fleet Map Marker Polish and Position Confidence Rules
- `Project Documentation/Architecture/FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.md`
- `Project Documentation/Architecture/FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.html`
- Purpose: active planning source for CruiseMapper-style workspace truck tracking, live driver-app GPS markers, estimated route-progress markers, Google Maps Platform usage, clickable/hover truck map behavior, marker confidence scoring, active-load position confidence rules, and dispatch intelligence overlays.
- Product UI impact: strengthens `/fleet-map` Workspace Operations surface with marker polish and position confidence explanations.
- Prisma schema impact: none.

This file is the controlled architecture index for Dispatch Spot inside `Project Documentation/Architecture/`.

## v393 Root documentation inventory and classification
- `Project Documentation/04_ROOT_DOCUMENTATION_INVENTORY_MANIFEST_V393.md`
- `Project Documentation/04_ROOT_DOCUMENTATION_INVENTORY_MANIFEST_V393.html`
- `Project Documentation/05_ROOT_DOCUMENTATION_CONFLICT_NOTES_V393.md`
- `Project Documentation/05_ROOT_DOCUMENTATION_CONFLICT_NOTES_V393.html`
- Purpose: classifies all root Markdown, HTML, and README documentation files before migration, identifies superseded/duplicate/mirror risk areas, and prepares the v394 consolidated active architecture manual.
- Prisma schema impact: none.

## v392 Current operating manual and documentation folder foundation
- `Project Documentation/00_CURRENT_OPERATING_MANUAL.md`
- `Project Documentation/00_CURRENT_OPERATING_MANUAL.html`
- `Project Documentation/01_PREVIOUS_CHAT_REQUIREMENTS_REGISTER.md`
- `Project Documentation/01_PREVIOUS_CHAT_REQUIREMENTS_REGISTER.html`
- `Project Documentation/02_DOCUMENTATION_MIGRATION_PLAN.md`
- `Project Documentation/02_DOCUMENTATION_MIGRATION_PLAN.html`
- Purpose: creates the controlled documentation folder, consolidates the active build-cycle procedure, captures previous-chat requirements, and starts a staged migration away from a cluttered root documentation set.
- Prisma schema impact: none.


## v369 Dispatch Spot build rules and CORI Mail settings cleanup
- `Project Documentation/Active/DISPATCH_SPOT_BUILD_RULES.md`
- `Project Documentation/Build History/DISPATCH_SPOT_BUILD_RULES_AND_CORI_MAIL_SETTINGS_CLEANUP_V369.md`
- `Project Documentation/HTML Mirrors/DISPATCH_SPOT_BUILD_RULES_AND_CORI_MAIL_SETTINGS_CLEANUP_V369.html`
- Purpose: establishes a required working memory file for every build cycle and corrects CORI Mail so SMTP credential entry lives in Workspace Settings, not on the CORI Mail user surface.
- Prisma schema impact: none.

## v367.1 CORI Mail Prisma JSON build fix
- `CORI_MAIL_SCHEMA_JSON_BUILD_FIX_V367_1.md`
- `CORI_MAIL_SCHEMA_JSON_BUILD_FIX_V367_1.html`
- Purpose: fixes the v367 Prisma JSON TypeScript build issue by sanitizing JSON input for CORI Mail work-action previews and Workspace Integration public configuration records.
- Prisma schema impact: none beyond v367.

## Governing architecture documents

### 1. Core platform architecture
- `Project Documentation/Architecture/BUILD_ARCHITECTURE_REVISED_V2.md`
- Purpose: the controlling build architecture for the platform refactor.
- Covers: product principles, workspace model, truck-centric operating model, shared objects, security/trust direction, phased refactor order.

### 2. Privacy, terms, consent, and data lifecycle
- `PRIVACY_TERMS_CONSENT_DATA_LIFECYCLE_ARCHITECTURE.md`
- Purpose: controlling document for policy versioning, acknowledgments, reminders, notices, privacy events, data export, archive, deletion, and restore.

## Working rules

1. New builds must not drift away from the truck-centric operating model.
2. New pages must declare:
   - workspace
   - role visibility
   - page purpose
   - shared objects touched
   - audit/privacy/security impact
3. Shared objects are API-owned. UI surfaces may not become the system of record.
4. Internal notes and shared messages must stay explicitly separated.
5. Super Admin remains isolated from customer workspaces.
6. Every significant build must update the relevant governing architecture documents when required.

## Immediate refactor spine

The next product refactor phase should follow this order:
1. Dispatcher Workspace truck-first spine
   - Home
   - My Trucks
   - Truck Command Page
2. Company Workspace truck-first spine
3. Shared permissions and audit model hardening
4. Driver Workspace
5. Broker/Shipper Workspace
6. Shared messaging and trusted timeline expansion

## Current status after v271

v271 is a documentation-only architecture upgrade.
No product/UI/database functionality changed in this build.
The purpose of v271 was to place the new governing architecture documents in the source root at that time and make future builds follow them in a disciplined manner.


## CORI Live Call Copilot governing document
- CORI_LIVE_CALL_COPILOT_ARCHITECTURE.md


## CORI live listening runtime planning document
- `CORI_LIVE_LISTENING_TRANSCRIPT_RUNTIME_PLAN.md`
- Purpose: governing plan for live call listening event flow, partial fact lifecycle, UI consumption, and consent-gated transcript transport staging.


## CORI normalized live event contract scaffold
- `CORI_NORMALIZED_LIVE_EVENT_CONTRACT_SCAFFOLD.md`
- Purpose: shared runtime contract for normalized call events, listening posture, partial fact lifecycle, advice refresh rules, and provider-agnostic selectors.


## CORI live event transport mock runtime foundation
- `CORI_LIVE_EVENT_TRANSPORT_MOCK_SESSION_WIRING.md`
- Purpose: governing mock runtime for session lifecycle, normalized event flow, transcript fragment simulation, fact promotion, advice refresh timing, and shared page/popup runtime feed.


## v287
- Expanded CORI launcher coverage across driver, truck, and load detail surfaces.
- Moved the driver call path to the top of the driver page so dispatch can reach the driver faster.
- Added simpler call-entry wording and stronger context handoff into popup and full-page CORI call surfaces.
- Established page refactor direction: high-frequency dispatcher actions should move upward before lower-page detail blocks.

- v302: CORI richer provider-backed transcript/result hardening foundation


## v303
- Added broader live-call operation readiness posture for CORI with compact operator-facing readiness, retry, fallback, and shared page/popup continuity cues.


- v304: CORI guarded real live-call readiness expansion foundation


- v306: CORI provider-side live DTMF tone transmission foundation


- v307: CORI live DTMF behavior and PBX feedback hardening foundation

- v308: CORI live DTMF retry/queue hardening foundation

## DAT load board authenticated search integration architecture
- `DAT_LOAD_BOARD_AUTHENTICATED_SEARCH_INTEGRATION_ARCHITECTURE.md`
- Purpose: workspace DAT connection, authenticated DAT load search, truck-aware next-load ranking, and CORI-assisted search inside Dispatch Spot.

## Accounting Portal + QuickBooks synchronization architecture
- `ACCOUNTING_PORTAL_QUICKBOOKS_SYNC_ARCHITECTURE.md`
- Purpose: workspace accounting mode, operator-friendly accounting portal, QuickBooks sync mapping, and recoverable sync/conflict handling for operations-linked accounting events.


- v309: Workspace phone number + dispatcher extension routing architecture planning and early scaffolding

## Workspace phone number + dispatcher extension routing architecture
- `WORKSPACE_PHONE_NUMBER_DISPATCHER_EXTENSION_ROUTING_ARCHITECTURE.md`
- Purpose: workspace-owned number planning, dispatcher extension model, inbound routing posture, busy/offline fallback rules, and callback/voicemail continuity staging.

## v311 workspace phone-system admin deepening
- stronger workspace number validation
- backup dispatcher assignment staging
- after-hours route, callback owner, and voicemail prompt staging
- stronger inbound contract warnings and summaries

## v312 additions
- `src/modules/voice/live-inbound-routing.service.ts`
- `app/api/voice/twilio/inbound/route.ts`
- `WORKSPACE_LIVE_INBOUND_ROUTING_EXTENSION_CAPTURE_WIRING_FOUNDATION.md`
- `WORKSPACE_LIVE_INBOUND_ROUTING_EXTENSION_CAPTURE_WIRING_FOUNDATION.html`


## v313
- inbound routing outcome hardening
- unresolved and invalid extension branch clarity
- runtime readiness/fallback warning visibility for workspace phone-system admins


- v314 added inbound runtime visibility and admin testability hardening for workspace phone-system routing.

## v315 additions
- `WORKSPACE_LIVE_DISPATCHER_RINGING_CONTINUITY_FOUNDATION.md`
- `WORKSPACE_LIVE_DISPATCHER_RINGING_CONTINUITY_FOUNDATION.html`

- v316: inbound callback / voicemail continuity hardening foundation.

## v317
- Inbound queue / after-hours behavior hardening foundation added.


- v318: queue / after-hours execution hardening for workspace inbound phone-system behavior

## v319 additions
- `src/modules/voice/business-phone-system-review.service.ts`
- `app/api/voice/phone-system/business-review/route.ts`

- WORKSPACE_BROADER_BUSINESS_PHONE_READINESS_CONTINUITY_HARDENING_FOUNDATION.md — v320 broader business-phone readiness and continuity hardening foundation.

- v321 unified workspace telephony behavior expansion foundation

## v322
- Workspace unified telephony hardening foundation
## v323
- Broader business phone platform expansion foundation
- `src/modules/voice/business-phone-system-review.service.ts`
- `app/api/voice/phone-system/business-review/route.ts`
- `WORKSPACE_BROADER_BUSINESS_PHONE_PLATFORM_EXPANSION_FOUNDATION.md`

## v324
- Unified business telephony platform expansion foundation
- `WORKSPACE_UNIFIED_BUSINESS_TELEPHONY_PLATFORM_EXPANSION_FOUNDATION.md`

## v325
- Unified business telephony platform hardening foundation
- `WORKSPACE_UNIFIED_BUSINESS_TELEPHONY_PLATFORM_HARDENING_FOUNDATION.md`
- `src/modules/voice/business-phone-system-review.service.ts`
- `app/(dashboard)/company/page.tsx`

## v326
- More complete unified business telephony platform expansion foundation
- `WORKSPACE_MORE_COMPLETE_UNIFIED_BUSINESS_TELEPHONY_PLATFORM_EXPANSION_FOUNDATION.md`

## v327
- Unified business telephony platform hardening foundation
- `WORKSPACE_UNIFIED_BUSINESS_TELEPHONY_PLATFORM_HARDENING_V327.md`
## v362 CORI Financial briefing foundation
- `CORI_FINANCIAL_BRIEFING_FOUNDATION_V362.md`
- `CORI_FINANCIAL_BRIEFING_FOUNDATION_V362.html`
- Purpose: adds CORI Financial as a plain-language financial briefing surface under the Ask CORI navigation group, with P&L overview, truck-by-truck money read, and role-aware dispatcher/fleet earnings summary.

## v363 CORI Financial readability and detail refinement
- `CORI_FINANCIAL_READABILITY_DETAIL_REFINEMENT_V363.md`
- `CORI_FINANCIAL_READABILITY_DETAIL_REFINEMENT_V363.html`
- Purpose: refines `/cori/financial` into a clearer AI-first money briefing with simple P&L language, needs-attention-first guidance, per-truck next checks, fuller load identification, and role-aware dispatcher/fleet earnings summary.
- Prisma schema impact: none.


## v364 CORI Mail AI email assistant foundation
- `CORI_MAIL_AI_EMAIL_ASSISTANT_FOUNDATION_V364.md`
- `CORI_MAIL_AI_EMAIL_ASSISTANT_FOUNDATION_V364.html`
- Purpose: establishes `/cori/mail` as the CORI-first email briefing and reply surface. The page prepares the long-term Gmail/Outlook provider path while keeping real send actions guarded by user approval.
- Prisma schema impact: none.

## v365 CORI Mail provider, draft, and work-conversion foundation
- `CORI_MAIL_PROVIDER_DRAFT_AND_WORK_CONVERSION_V365.md`
- `CORI_MAIL_PROVIDER_DRAFT_AND_WORK_CONVERSION_V365.html`
- Purpose: deepens `/cori/mail` with Gmail/Outlook provider-readiness planning, draft persistence foundation, staged provider draft behavior, and email-to-load/task/work conversion previews.
- User-facing rule: keep words simple and require user approval before any real send.
- Prisma schema impact: none.

## v366 CORI Mail custom domain and storage readiness
- `CORI_MAIL_CUSTOM_DOMAIN_STORAGE_READINESS_V366.md`
- `CORI_MAIL_CUSTOM_DOMAIN_STORAGE_READINESS_V366.html`
- Purpose: adds Custom Domain SMTP as a CORI Mail provider path beside Gmail and Outlook, adds a simple SMTP setup interface, and records the requirement for encrypted provider credential storage and persistent CORI Mail draft/action/audit records.
- Prisma schema impact: none.

## v367 CORI Mail schema-backed storage and Workspace Integrations foundation
- `CORI_MAIL_SCHEMA_BACKED_INTEGRATIONS_V367.md`
- `CORI_MAIL_SCHEMA_BACKED_INTEGRATIONS_V367.html`
- Purpose: adds database homes for CORI Mail provider accounts, drafts, work actions, and send audit records while introducing `/company/integrations` as the Workspace Settings home for Email, Google Maps API, Twilio, QuickBooks API, Stripe Connect, and future APIs.
- Prisma schema impact: yes. Requires `npx prisma generate` and `npx prisma db push` before TypeScript and Next build checks.

## v368 CORI Mail Custom SMTP testing and guarded send preparation
- `CORI_MAIL_CUSTOM_SMTP_TESTING_GUARDED_SEND_V368.md`
- `CORI_MAIL_CUSTOM_SMTP_TESTING_GUARDED_SEND_V368.html`
- Purpose: adds server-side Custom SMTP connection testing for saved workspace email accounts and keeps CORI Mail send behavior guarded by user approval.
- Prisma schema impact: none. Uses v367 integration and CORI Mail persistence tables.

## v371 Page cleanup and navigation simplification
- `DISPATCH_SPOT_PAGE_CLEANUP_NAVIGATION_SIMPLIFICATION_V371.md`
- `DISPATCH_SPOT_PAGE_CLEANUP_NAVIGATION_SIMPLIFICATION_V371.html`
- Purpose: removes confusing or premature normal-user destinations from the sidebar and redirects retired pages to simpler work surfaces while preserving useful ideas for later CORI/page-level rebuilds.
- Prisma schema impact: none.

## v372 Workspace Settings tabs and integration cleanup
- `DISPATCH_SPOT_WORKSPACE_SETTINGS_INTEGRATIONS_CLEANUP_V372.md`
- `DISPATCH_SPOT_WORKSPACE_SETTINGS_INTEGRATIONS_CLEANUP_V372.html`
- Purpose: simplifies `/company` into tabbed Workspace Settings and confirms `/company/integrations` as the single home for provider/API setup, including Email, Custom SMTP, Twilio, Google Maps, QuickBooks, Stripe Connect, and future APIs.
- Prisma schema impact: none.

## v373 Operational surface cleanup
- `DISPATCH_SPOT_OPERATIONAL_SURFACE_CLEANUP_V373.md`
- `DISPATCH_SPOT_OPERATIONAL_SURFACE_CLEANUP_V373.html`
- Purpose: clarifies the remaining high-use work surfaces by separating Billing Records from CORI Financial, renaming Documents to Paperwork, removing duplicate CRM people/asset navigation, and reaffirming Dispatch Board vs Loads roles.
- Prisma schema impact: none.

## v374 List Surface Cleanup
- `DISPATCH_SPOT_LIST_SURFACE_CLEANUP_V374.md`
- `DISPATCH_SPOT_LIST_SURFACE_CLEANUP_V374.html`
- Purpose: reviews and simplifies Loads, Dispatch Board, Routes, Trucks, Drivers, Owner Operators, Companies, Brokers, and Shippers against the Page Usefulness Rule, removing duplicate navigation, visible technical checks, retired analytics/report links, and CRM/People & Assets crossover clutter.
- Prisma schema impact: none.

## v375 Detail Page Cleanup
- File: `DISPATCH_SPOT_DETAIL_PAGE_CLEANUP_V375.md`
- HTML: `DISPATCH_SPOT_DETAIL_PAGE_CLEANUP_V375.html`
- Purpose: reviews and simplifies Load, Truck, Driver, Owner Operator, Company, Broker, and Shipper detail pages against the Page Usefulness Rule, keeping key record facts visible while collapsing deeper support/check/history tools.
- Prisma schema impact: none.
## v375.1 - Detail Page Import Build Fix

- Fixed missing cleanup component aliases used by v375 detail pages.
- Added the missing paperwork-check component bridge.
- Preserved the v375 detail-page cleanup and simple wording direction.
- No Prisma schema changes.


## v376 Form, Invoice, and Subpage Cleanup
- File: `DISPATCH_SPOT_FORM_INVOICE_SUBPAGE_CLEANUP_V376.md`
- HTML: `DISPATCH_SPOT_FORM_INVOICE_SUBPAGE_CLEANUP_V376.html`
- Purpose: reviews and simplifies remaining add/edit forms, invoice flow, truck subpages, Profile & Security, Workspace Settings, and Third-Party Integrations against the Page Usefulness Rule.
- Prisma schema impact: none.


## v377 High-Use Surface Cleanup
- File: `DISPATCH_SPOT_HIGH_USE_SURFACE_CLEANUP_V377.md`
- HTML: `DISPATCH_SPOT_HIGH_USE_SURFACE_CLEANUP_V377.html`
- Purpose: reviews and simplifies CORI Briefing, Dispatch Board, Paperwork, Billing Records, and CORI pages against the Page Usefulness Rule and removes roadmap/development/process language from normal user surfaces.
- Prisma schema impact: none.

## v378 Hidden Section, Route, and Call Language Cleanup
- File: `DISPATCH_SPOT_HIDDEN_SECTION_ROUTE_CALL_LANGUAGE_CLEANUP_V378.md`
- HTML: `DISPATCH_SPOT_HIDDEN_SECTION_ROUTE_CALL_LANGUAGE_CLEANUP_V378.html`
- Purpose: reviews hidden/collapsed sections, CORI's Quotes, route planning, and remaining user-facing wording against the Page Usefulness Rule so deeper sections stay simple too.
- Prisma schema impact: none.

## v379 Admin Placement, Truck Command, and CRM Language Cleanup
- File: `DISPATCH_SPOT_ADMIN_PLACEMENT_TRUCK_CRM_LANGUAGE_CLEANUP_V379.md`
- HTML: `DISPATCH_SPOT_ADMIN_PLACEMENT_TRUCK_CRM_LANGUAGE_CLEANUP_V379.html`
- Purpose: reinforces Super Admin vs Workspace Admin vs daily user placement, while simplifying truck command, route, profile, and CRM lead-follow-up wording.
- Prisma schema impact: none.

## v380 Final High-Use Language Sweep

- `DISPATCH_SPOT_FINAL_LANGUAGE_SWEEP_V380.md`
- `DISPATCH_SPOT_FINAL_LANGUAGE_SWEEP_V380.html`

v380 adds the Final User-Facing Language Sweep Rule and applies it across Dispatch Board, Loads, Paperwork, Billing Records, CORI Briefing, CORI Mail, and supporting helper panels. No Prisma schema changes.

## v381 Handoff Note — Cleanup Closeout and Build Preflight Guard

v381 closes the broad cleanup cycle unless live UI review identifies a specific remaining confusing page. Future changes should resume feature development with `Project Documentation/Active/DISPATCH_SPOT_BUILD_RULES.md` enforced before every build.

A new preflight command is now available and should run before TypeScript and Next build:

```bash
npm run dispatchspot:preflight
```

This command checks local source imports for missing files and prints non-blocking language warnings for selected internal terms on normal user-facing surfaces. It is designed to catch cleanup bridge mistakes earlier, especially after renaming helper components or moving content between user surfaces and settings/admin pages.

No Prisma schema changes were added in v381.

## v382 - Simple app-style notifications foundation

New files:

- `src/modules/app-notifications/app-notification.service.ts`
- `app/api/app-notifications/route.ts`
- `components/notifications/app-notification-bell.tsx`
- `components/notifications/simple-notification-list.tsx`
- `DISPATCH_SPOT_SIMPLE_APP_NOTIFICATIONS_FOUNDATION_V382.md`
- `DISPATCH_SPOT_SIMPLE_APP_NOTIFICATIONS_FOUNDATION_V382.html`

Updated files:

- `app/(dashboard)/notifications/page.tsx`
- `components/layout/topbar.tsx`
- `types/index.ts`

## v383 - Notification Preferences and Opt-In Delivery Planning

- User-facing page: `/notifications`
- API used: `/api/app-notifications`, `/api/notifications/preferences`
- Existing model used: `UserNotificationPreference`
- New UI component: `components/notifications/notification-preference-panel.tsx`
- New docs: `DISPATCH_SPOT_NOTIFICATION_PREFERENCES_OPT_IN_FOUNDATION_V383.md` and `.html`
- Schema impact: none

## v384 Notification Delivery Through Workspace Integrations

See `DISPATCH_SPOT_NOTIFICATION_DELIVERY_INTEGRATIONS_V384.md` and `.html` for the notification delivery readiness and guarded Custom SMTP test-send foundation.

## v385 - Urgent Text Opt-In and Phone Capture

- User-facing page: `/notifications`
- Existing API updated: `/api/notifications/preferences`
- Existing model updated: `UserNotificationPreference`
- Updated UI component: `components/notifications/notification-preference-panel.tsx`
- Updated service: `src/modules/notifications/notification-preference.service.ts`
- Updated readiness service: `src/modules/app-notifications/app-notification-delivery.service.ts`
- New docs: `DISPATCH_SPOT_NOTIFICATION_TEXT_OPT_IN_V385.md` and `.html`
- Schema impact: yes

## v386 - Guarded Urgent Text Delivery Preparation

- User-facing page: `/notifications`
- New API route: `/api/app-notifications/urgent-text-preview`
- Updated UI component: `components/notifications/notification-delivery-panel.tsx`
- Updated service: `src/modules/app-notifications/app-notification-delivery.service.ts`
- Updated types: `types/index.ts`
- New docs: `DISPATCH_SPOT_NOTIFICATION_GUARDED_TEXT_PREP_V386.md` and `.html`
- Schema impact: none

## v387 — Notification SMS Send and Audit Records

- `DISPATCH_SPOT_NOTIFICATION_SMS_SEND_AUDIT_V387.md`
- `DISPATCH_SPOT_NOTIFICATION_SMS_SEND_AUDIT_V387.html`

v387 adds guarded urgent text sending and schema-backed send audit records while keeping Twilio setup in Workspace Settings > Third-Party Integrations.

## v388 — Notification Read/Unread and Dismissal Behavior

- `DISPATCH_SPOT_NOTIFICATION_READ_DISMISS_V388.md`
- `DISPATCH_SPOT_NOTIFICATION_READ_DISMISS_V388.html`

v388 adds schema-backed per-user app alert state through `AppNotificationUserState`, updates the notification bell to count unread active alerts, and gives users simple read/unread and hide/show-again controls on `/notifications`.

Prisma schema impact: yes.

## v390 — Notification Settings Relocation and Operational Surface Lock

- `DISPATCH_SPOT_NOTIFICATION_SETTINGS_RELOCATION_V390.md`
- `DISPATCH_SPOT_NOTIFICATION_SETTINGS_RELOCATION_V390.html`

v390 corrects notification surface drift. `/notifications` is now an alert/action surface only. Notification preferences, phone-number capture, urgent-text opt-in/out, delivery readiness, and test-send controls belong in Workspace Settings > Notifications. Provider credentials and connected accounts remain in Workspace Settings > Third-Party Integrations.

This supersedes earlier notification-track notes that allowed settings or opt-in controls directly on `/notifications`.


## v398 product re-entry note

The documentation cleanup cycle is complete enough for normal feature work. v399 completed CORI Mail send-review and audit visibility hardening. Recommended next product architecture focus: notification digest/email trigger behavior.

## v407 Architecture Index Addition

Use `WORKSPACE_PARITY_AND_MEMBERSHIP_SUBSCRIPTION_TRIAL_PLAN.md` for the post-notification planning track covering role workspace parity, workspace type direction, membership subscription engine planning, trial-period registration workflow, entitlement limits, add-ons, billing status behavior, Stripe handoff, expired-trial handling, and Super Admin visibility.

## v410 Membership subscription/trial/workspace-type architecture

Active planning source:

- `Project Documentation/Architecture/MEMBERSHIP_SUBSCRIPTION_TRIAL_WORKSPACE_TYPE_ARCHITECTURE.md`

Use this before changing sign-up UI, Prisma subscription/workspace models, trial behavior, plan visibility, invited driver/customer/carrier portals, Freight Broker load distribution limits, internal load-board access, Stripe handoff, or Super Admin billing visibility.


## v413 architecture update

`Project Documentation/Build History/WORKSPACE_TYPE_SUBSCRIPTION_PRISMA_FOUNDATION_V413.md` records the first database foundation for workspace type/account class, plan family/visibility, and Super Admin audit events. Future Super Admin registration, trial, billing-gate, and workspace-classification work should use this foundation but should not enforce it until the classification workflow is built.

## v414 Architecture Index Note

The workspace type/subscription track now includes a guarded Super Admin classification workflow. Use `Project Documentation/Build History/SUPER_ADMIN_WORKSPACE_CLASSIFICATION_WORKFLOW_V414.md` together with `WORKSPACE_TYPE_SUBSCRIPTION_SCHEMA_DESIGN_REVIEW.md` before extending registration, plan visibility, billing gates, owned interface records, invited portals, broker distribution limits, or internal load-board access.

## v415 Architecture Index Note

`Project Documentation/Build History/SUPER_ADMIN_PLAN_VISIBILITY_CLASSIFICATION_READINESS_REVIEW_V415.md` records the Super Admin review layer that compares stored workspace classifications with plan visibility and readiness warnings. Use it before moving to registration-time workspace type selection, public plan visibility, billing gates, portal ownership records, broker distribution limits, or internal load-board access rules.


---

## Older migrated architecture entries preserved below

# v412 Workspace Type / Subscription Schema Design Review

- `Project Documentation/Architecture/WORKSPACE_TYPE_SUBSCRIPTION_SCHEMA_DESIGN_REVIEW.md`
- `Project Documentation/HTML Mirrors/WORKSPACE_TYPE_SUBSCRIPTION_SCHEMA_DESIGN_REVIEW.html`
- `Project Documentation/Build History/WORKSPACE_TYPE_SUBSCRIPTION_SCHEMA_DESIGN_REVIEW_V412.md`
- `Project Documentation/HTML Mirrors/WORKSPACE_TYPE_SUBSCRIPTION_SCHEMA_DESIGN_REVIEW_V412.html`
- Purpose: decides the schema direction for workspace type, account class, plan visibility, trial policy, registration workflow state, owned interface/invited portal access, broker load-distribution usage, internal load-board access, billing gate overrides, and Super Admin audit before Prisma changes.
- Product UI impact: none.
- Prisma schema impact: none.

# v411 Super Admin Workspace Type and Subscription Overview Foundation

- /admin/workspaces/types
- components/admin/admin-workspace-type-subscription-overview-client.tsx
- Project Documentation/Build History/SUPER_ADMIN_WORKSPACE_TYPE_SUBSCRIPTION_OVERVIEW_V411.md
- Project Documentation/HTML Mirrors/SUPER_ADMIN_WORKSPACE_TYPE_SUBSCRIPTION_OVERVIEW_V411.html
- Purpose: first Super Admin control surface for reviewing workspace type, account class, trial/subscription state, plan visibility, entitlements, owned interfaces, invited portals, and billing gate readiness using the existing schema only.
- Product UI impact: Super Admin only.
- Prisma schema impact: none.


# v409 Role Workspace Architecture and Super Admin Administration Requirements

- `Project Documentation/Architecture/ROLE_WORKSPACE_ARCHITECTURE_AND_SUPER_ADMIN_ADMINISTRATION_REQUIREMENTS.md`
- `Project Documentation/HTML Mirrors/ROLE_WORKSPACE_ARCHITECTURE_AND_SUPER_ADMIN_ADMINISTRATION_REQUIREMENTS.html`
- Purpose: active planning source for Dispatcher, Company/Fleet, Carrier/Owner-Operator, Driver, Freight Broker, Shipper/Customer, internal load board, and internal Dispatch Spot Operations workspace behavior and the Super Admin requirements created by those workspaces.
- Product UI impact: none.
- Prisma schema impact: none.

# v408 Super Admin Control Center Information Architecture

- `Project Documentation/Architecture/SUPER_ADMIN_CONTROL_CENTER_INFORMATION_ARCHITECTURE_PLAN.md`
- `Project Documentation/HTML Mirrors/SUPER_ADMIN_CONTROL_CENTER_INFORMATION_ARCHITECTURE_PLAN.html`
- Purpose: active planning source for Super Admin category/page structure, platform provider control, subscription/billing boundaries, Twilio phone-system billing direction, cross-cutting taxonomies, and Driver Workspace subscription clarification.
- Product UI impact: none.
- Prisma schema impact: none.

# v394 Consolidated Active Architecture Note

The current compact product and architecture source is now `Project Documentation/06_CONSOLIDATED_ACTIVE_PRODUCT_ARCHITECTURE_MANUAL_V394.md`.

Use that manual before opening older architecture source files. This index remains useful as a map of original source documents, but older entries are subordinate to the consolidated manual, build rules, and current source-of-truth documents.

---

## v370 Surface cleanup audit and Notification Center removal

## v391 Documentation source-of-truth structure
- `Project Documentation/Active/DISPATCH_SPOT_DOCUMENTATION_SOURCE_OF_TRUTH.md`
- `DISPATCH_SPOT_DOCUMENTATION_SOURCE_OF_TRUTH.html`
- `Project Documentation/Active/DISPATCH_SPOT_SUPERSEDED_GUIDANCE_REGISTER.md`
- `DISPATCH_SPOT_SUPERSEDED_GUIDANCE_REGISTER.html`
- `DISPATCH_SPOT_DOCUMENTATION_CONSOLIDATION_AUDIT_V391.md`
- `DISPATCH_SPOT_DOCUMENTATION_CONSOLIDATION_AUDIT_V391.html`
- Purpose: establishes the active documentation reading order, marks known superseded guidance, and prevents historical build notes from overriding newer placement and surface-cleanliness rules.
- Prisma schema impact: none.
- `DISPATCH_SPOT_SURFACE_CLEANUP_AUDIT_V370.md`
- `DISPATCH_SPOT_SURFACE_CLEANUP_AUDIT_V370.html`
- Purpose: begins the disciplined page-by-page cleanup phase, removes the confusing Notification Center from normal navigation, and establishes the Page Usefulness Rule for future surface decisions.
- Prisma schema impact: none.

## v470 Architecture Index Note

`Project Documentation/Build History/FLEET_MAP_MARKER_REFRESH_DISPATCHER_CONFIRMED_STATE_MODEL_V470.md` records the Fleet Map marker refresh review state model. Use it before moving from manual position audit records into any visible marker-refresh behavior. Green markers remain reserved for live driver-app GPS. Dispatcher-confirmed/manual positions must remain non-live and clearly labeled.

## v471 Architecture Index Note

`Project Documentation/Build History/FLEET_MAP_DISPATCHER_CONFIRMED_MARKER_REFRESH_PREVIEW_NON_LIVE_LABELING_V471.md` records the non-live marker refresh preview and labeling layer. Use it before approving any build that moves marker coordinates from manual records. Green remains live driver-app GPS only; dispatcher-confirmed evidence stays blue/non-live and clearly labeled.

## v474 Architecture Index Note — Fleet Map dry-run and rollback readiness

- Fleet Map active architecture now includes non-live marker refresh execution dry-run and rollback readiness.
- Source document: `FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.md`.
- Dry-run records are audit evidence only and do not move marker coordinates.
- Transportation Accounting remains documented at `TRANSPORTATION_ACCOUNTING_ORIGINAL_PLAN.md` as planned future architecture only.


## v477 Fleet Map lifecycle dashboard index note

Fleet Map now includes a non-live marker lifecycle dashboard and stale-position cleanup layer. See Project Documentation/Architecture/FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.md and Project Documentation/Build History/FLEET_MAP_NON_LIVE_MARKER_LIFECYCLE_DASHBOARD_STALE_POSITION_CLEANUP_V477.md.


## v478 Fleet Map driver-app GPS readiness index note

Fleet Map now includes driver-app GPS intake contract, consent/privacy readiness, and live-marker eligibility behavior. See Project Documentation/Architecture/FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.md and Project Documentation/Build History/FLEET_MAP_DRIVER_APP_GPS_INTAKE_CONTRACT_CONSENT_LIVE_ELIGIBILITY_V478.md.

- v479 Fleet Map controlled driver-app live GPS activation: adds DomainEvent-backed driver-app live GPS sessions, green-marker activation from fresh driver-app coordinates only, stale/stopped fallback behavior, and live GPS dashboard/audit visibility without connecting GPS/ELD/telematics providers or Google Geocoding/Routes APIs.
## v480 Fleet Map provider-neutral GPS/ELD/telematics sandbox connector index note

Fleet Map now includes provider-neutral GPS/ELD/telematics sandbox mapping, sandbox signal review, stale/failure marking, and conflict visibility against driver-app GPS. See `Project Documentation/Architecture/FLEET_MAP_LIVE_ESTIMATED_TRUCK_POSITIONING_ARCHITECTURE.md` and `Project Documentation/Build History/FLEET_MAP_PROVIDER_NEUTRAL_GPS_ELD_TELEMATICS_FOUNDATION_SANDBOX_CONNECTOR_V480.md`.

Green markers remain fresh driver-app GPS only. Provider sandbox evidence does not move marker coordinates, turn markers green, override driver-app GPS, connect production provider APIs, or call Google Geocoding/Routes APIs.

## v480.1 Fleet Map provider sandbox build-fix index note

v480.1 fixes the Fleet Map provider sandbox route-overlay point typing issue reported during production build after v480. This is a build-only TypeScript correction in `src/modules/fleet-map/fleet-map.service.ts` and does not alter provider sandbox behavior, GPS source priority, marker mutation rules, Google API readiness, billing, broker distribution, owned portal, internal load-board, Transportation Accounting, or Prisma schema.